<?php
use_helper('DateForm');
use_helper('Object');	
use_helper('Javascript');

	if($tipo_causa_id == 2)
	{
		echo input_tag('causa-exhorto','CLICK BUSCAR CAUSA',array('size' => '20','disabled' => 'disabled'));
		echo '&nbsp;&nbsp;';
		echo button_to_remote('Buscar Causa', array(
          		'update'	=> 'list-search-causa',
          		'url'		=> 'juicios/searchcausa?accion=crearcausa',
          		'loading'	=> visual_effect('appear','loading', array('duration' => 0)),
	  			'complete'	=> visual_effect('appear', 'list-search-causa').
          					   visual_effect('highlight','list-search-causa',array('duration' => 1.0)). 
							   visual_effect('fade','loading', array('duration' => 0)),
      			),array('class' => 'buscar boton_con_imagen'));
	}
	else
	{
		echo input_tag('causa-exhorto','SIN CAUSA BASE',array('disabled' => 'disabled'));
	}
/*	if($tipo_causa_id == 2 && $editar == false)
	{
		?><input type="text" id="causa-exhorto" readonly="readonly"></input>&nbsp;<?
		echo button_to_remote('Buscar', array(
          			'update'	=> 'list-search-causa',
          			'url'		=> 'juicios/searchcausa?accion=crearcausa',
          			'loading'	=> visual_effect('appear','loading', array('duration' => 0)),
		  			'complete'	=> visual_effect('appear', 'list-search-causa').
          						   visual_effect('highlight','list-search-causa',array('duration' => 1.0)). 
								   visual_effect('fade','loading', array('duration' => 0)),
      				),array('class' => 'buscar boton_con_imagen'));
	}
	elseif($tipo_causa_id == 1)
	{
		echo ""; ?><input type="text" id="causa-exhorto" readonly="readonly"></input><?
	}
	elseif($tipo_causa_id == 2 && $editar == true)
	{
		?><input type="text" id="causa-exhorto" readonly="readonly"></input>&nbsp;<?
		echo button_to_remote('Buscar',
			array(
				'update'	=>'list-search-causa',
				'url'		=>'juicios/searchcausa?accion=editcausa',
				'loading'	=> visual_effect('appear','loading', array('duration' => 0)),
				'complete'	=> visual_effect('appear', 'list-search-causa').
								visual_effect('highlight','list-search-causa',array('duration' => 1.0)).
								visual_effect('fade','loading', array('duration' => 0))
				),
			array('class' => 'buscar boton_con_imagen'));
	}?>*/